<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人所得税计算</title>
</head>
<body>
    <script>
        var income =prompt("请输入您的工资");

        income =income*1;
        

        if(income<=3500){
            
            alert('您不用交税');
        }else{
            var taxable = income-3500;
            if(taxable<=1500){
                income =taxable*0.03;
            }else if(taxable<=4500){
                income =taxable*0.1-105;
            }else if(taxable<=9000){
                income = taxable*0.2-555;
            }else if(taxable<=35000){
                income =taxable*0.25-1055;
            }else if(taxable<=55000){
                income =taxable*0.35-2755;
            }else if(taxable<=80000){
                income =taxable*0.35-5505;
            }else{
                income = taxable*0.45-13505;
            }
            alert("您的个人所得税应纳"+income);
        }
                                           

        

        
    
    </script>
</body>
</html>